package com.zheng.redpacket.server.serivce;

import com.zheng.redpacket.mdg.model.PraiseRankDto;

import java.util.List;

public interface RedisPraiseService {
    /**
     * 缓存当前用户点赞博客记录
     */
    void cachePraiseBlog(Integer blogId, Integer userId, Integer status) throws Exception;

    /**
     * 获取当前博客赞数
     */
    Long getCacheTotalBlog (Integer blogId) throws Exception;

    /**
     * 触发点赞总数排行榜
     */
    void rankBlogPraise() throws Exception;

    /**
     * 点赞总数排行
     */
    List<PraiseRankDto> getBlogPraiseRank() throws Exception;

}
